﻿<%@ Page Language="C#" MasterPageFile="~/dangviet.Master" AutoEventWireup="true" CodeBehind="ThanhToan.aspx.cs"
    Inherits="SES.CMS.ThanhToan" Title="Untitled Page" %>

<%@ Register Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" TagPrefix="cc" %>
<%@ Register Src="Module/ucBreadcrumb.ascx" TagName="ucBreadcrumb" TagPrefix="uc5" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <uc5:ucBreadcrumb runat="server" ID="brc1" />
    <div id="dProductDetail">
    <h3 style="margin-bottom: 20px; margin-top: 0px; padding-top: 0px; text-align: left;">
        Thông tin giỏ hàng</h3>
    <asp:GridView runat="server" ID="GridGioHang" AutoGenerateColumns="False" EmptyDataText="Không có dữ liệu !"
        AllowPaging="True" OnPageIndexChanging="GridGioHang_PageIndexChanging" OnRowCommand="GridGioHang_RowCommand"
        CellPadding="4" Width="740px" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px"
        OnRowDataBound="GridGioHang_RowDataBound" DataKeyNames="STT" OnDataBinding="GridGioHang_DataBinding"
        OnDataBound="GridGioHang_DataBound" ShowFooter="false" CssClass="mGrid" PagerStyle-CssClass="pgr"
        AlternatingRowStyle-CssClass="alt" RowStyle-CssClass="rgr" HeaderStyle-CssClass="hgr">
        <RowStyle />
        <Columns>
            <asp:TemplateField HeaderText="STT" ItemStyle-Width="13px">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lbSTT" Text="<%# Container.DataItemIndex + 1 %>">
                    </asp:Label>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
                <FooterTemplate>
                    Tổng tiền:
                </FooterTemplate>
                <FooterStyle BorderColor="White" Font-Bold="true" ForeColor="Red" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Tên sản phẩm" ItemStyle-Width="180px">
                <ItemTemplate>
                    <asp:Label runat="server" ID="txtTen" Text='<%#DataBinder.Eval(Container.DataItem,"TenSanPham") %>'>
                    </asp:Label>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Left" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Ảnh SP" ItemStyle-Width="65px">
                <ItemTemplate>
                    <a class="fackybox" href="/Media/<%#Eval("HinhAnh")%>" />
                    <img alt="FriendShop" src="/Media/<%#Eval("HinhAnh")%>" height="40px" width="64px" /></a>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Số Lượng" ItemStyle-Width="50px">
                <ItemTemplate>
                    <asp:Label runat="server" ID="txtSL" Width="20px" Text='<%#DataBinder.Eval(Container.DataItem,"SoLuong") %>'>
                    </asp:Label>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
                <FooterStyle BorderColor="White" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Đơn Giá" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="90px">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lbDG" Text='<%#DataBinder.Eval(Container.DataItem,"DonGia","{0:0,0 VNĐ}") %>'>
                    </asp:Label>
                </ItemTemplate>
                <FooterStyle BorderColor="White" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Giảm Giá (%)" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="70px"
                Visible="false">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lbDGG" Text='<%#Eval("GiamGia") +"%" %>'>
                    </asp:Label>
                </ItemTemplate>
                <FooterStyle BorderColor="White" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Thành Tiền" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="110px">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lbThanhTien" Font-Bold="true" Text='<%#DataBinder.Eval(Container.DataItem,"ThanhTien","{0:0,0 USD}") %>'>
                    </asp:Label>
                </ItemTemplate>
                <FooterTemplate>
                    <asp:Label ID="lbTong" runat="server" Font-Bold="true" ForeColor="Red"></asp:Label>
                </FooterTemplate>
                <FooterStyle HorizontalAlign="Center" BorderColor="White" />
            </asp:TemplateField>
        </Columns>
        <FooterStyle />
        <PagerStyle />
        <SelectedRowStyle />
        <HeaderStyle />
    </asp:GridView>
    <br />
    <div style="width: 400px; margin-left: auto; margin-right: 10px; text-align: right;">
        <asp:Label ID="lblSum" runat="server"></asp:Label><br />
        <asp:Label ID="lbThanhTien" runat="server"></asp:Label>
    </div>
    <div align="center" style="margin-top: 15px;" class="ltr">
    </div>
    <fieldset class="">
        <legend>Thông tin thanh toán</legend>
        <ul class="append_info">
            <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                padding-right: 5px;"></span>Họ tên </span><span class="cl_sp">:</span> <span class="info_result">
                </span>
                <asp:TextBox runat="server" ID="txtHT" CssClass="ip_info_result" type="text" TabIndex="1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtHT"
                    ErrorMessage="(*)"></asp:RequiredFieldValidator>
            </li>
            <!--END DIV gender-->
            <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                padding-right: 5px;"></span>Địa chỉ </span><span class="cl_sp">:</span> <span class="info_result">
                </span>
                <asp:TextBox runat="server" ID="txtDC" CssClass="ip_info_result" type="text" TabIndex="2"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtDC"
                    ErrorMessage="(*)"></asp:RequiredFieldValidator>
            </li>
            <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                padding-right: 5px;"></span>Số điện thoại </span><span class="cl_sp">:</span> <span
                    class="info_result"></span>
                <asp:TextBox runat="server" ID="txtsdt" CssClass="ip_info_result" type="text" TabIndex="3"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtsdt"
                    ErrorMessage="(*)"></asp:RequiredFieldValidator>
            </li>
            <!--END DIV gender-->
            <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                padding-right: 5px;"></span>Email</span><span class="cl_sp">:</span> <span class="info_result">
                </span>
                <asp:TextBox runat="server" ID="txtEmail" CssClass="ip_info_result" type="text" TabIndex="4"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtEmail"
                    ErrorMessage="(*)"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Sai định dạng email"
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail"></asp:RegularExpressionValidator>
            </li>
            <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                padding-right: 5px;"></span>Kiểu thanh toán </span><span class="cl_sp">:</span>
                <span class="info_result"></span>
                <asp:DropDownList runat="server" ID="ddlHTTT" AppendDataBoundItems="true" AutoPostBack="false"
                    CssClass="ip_info_result">
                    <asp:ListItem Value="Thanh toán tại nhà" Text="Thanh toán tại nhà" Selected="True"></asp:ListItem>
                    <asp:ListItem Value="Chuyển khoản qua ngân hàng" Text="Chuyển khoản qua ngân hàng"></asp:ListItem>
                    <asp:ListItem Value="Thanh toán tại cửa hàng" Text="Thanh toán tại cửa hàng"></asp:ListItem>
                </asp:DropDownList>
            </li>
            <!--END DIV gender-->
            <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                padding-right: 5px;"></span>Địa chỉ giao hàng</span><span class="cl_sp">:</span>
                <span class="info_result"></span>
                <asp:TextBox runat="server" ID="txtDCGH" CssClass="ip_info_result" type="text" TabIndex="6"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtDCGH"
                    ErrorMessage="(*)"></asp:RequiredFieldValidator>
            </li>
            <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                padding-right: 5px;"></span>Ghi chú</span><span class="cl_sp">:</span> <span class="info_result">
                </span>
                <asp:TextBox runat="server" ID="txtGC" CssClass="ip_info_result" type="text" TabIndex="7"
                    Height="100px" TextMode="MultiLine"></asp:TextBox>
            </li>
            <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                padding-right: 5px;"></span>Ngày giao hàng</span><span class="cl_sp">:</span> <span
                    class="info_result"></span>
                <asp:TextBox runat="server" ID="txtNgayGiaoHang" CssClass="ip_info_result" type="text"
                    TabIndex="8"></asp:TextBox>
            </li>
            <li class="info_detail" style="border: none;"><span class="sp_info_detai"><span style="font-size: 9px;
                padding-right: 5px;"></span></span><span class="cl_sp" style="padding-right: 10px;">
                </span><span class="info_result" style="margin-right: 20px;"></span>
                <asp:Button ID="btn" runat="server" Text="Gửi đơn hàng" OnClick="btn_Click" CssClass="cupid-green" />
                <asp:Button ID="btnHuy" runat="server" Text="Hủy" OnClick="btnHuy_Click" CssClass="cupid-green" />
            </li>
            <!--END DIV gender-->
        </ul>
    </fieldset>
    <fieldset class="">
        <legend>Thông tin chuyển khoản</legend>
        <asp:Label runat="server" ID="lblThongTinThanhToan" Text=""></asp:Label>
    </fieldset>
    <cc:CalendarExtender runat="server" ID="celander1" TargetControlID="txtNgayGiaoHang"
        Format="MM/dd/yyyy">
    </cc:CalendarExtender>
        </div>
</asp:Content>
